package com.huluobo.lc.a1803aretrofitrxdemo.mvp;

import com.huluobo.lc.a1803aretrofitrxdemo.bean.JavaBean;
import com.huluobo.lc.a1803aretrofitrxdemo.network.response.Response;

import java.util.List;

import io.reactivex.Observable;

/**
 * @author Lc
 * @description: MVP协议
 * @date :2020/11/10 15:22
 */
class Contract {
    public interface Presenter{
        void getCarList(String userId);
    }

    public interface View{
        void getDataSuccess();
        void getDataFailed();
    }

    public interface Model{
        Observable<Response<List<JavaBean>>> getCartList(String userId);
    }
}
